package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.HouseRepair;
import com.foreveross.vo.HouseUser;
import com.foreveross.vo.common.PageVo;

public interface HouseRepairDAO {
	
    public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
		
	public <T extends Object> T updateObject(T t) throws Exception;
	
	public List<HouseRepair> findHouseRepairList(String repair_no,String name,String phone,String type,String typeName,String status,String houseId,
			String resCode,int pageIndex, int pageSize,String userId) throws Exception;

	public long getHouseRepairCount(String repair_no,String name,String phone,String type,String typeName,String status,String houseId,String resCode,String userId) throws Exception;

	public PageVo<HouseRepair> getMyHouseRepair(String weixinid, String currentPage,String pageSize) throws Exception;

	public void updateHouserRepair(String id, String status) throws Exception;

}
